package cn.darkhorse.workorder.domain;

import java.util.List;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.*;
import com.ruoyi.common.annotation.Excel;

import javax.validation.constraints.Size;


/**
 * hvi检验对象 qms_workorder_hvi
 *
 * @author ytq
 * @date 2024-07-19
 */
@TableName("qms_workorder_record")
@Data
@ApiModel(value = "QmsWorkorderHvi", description = "hvi检验对象")
public class QmsWorkorderHvi
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(" 主键")
    private Long id;

    /** 流转单编号 */
    @ApiModelProperty(" 流转单编号")
    @Excel(name = "流转单编号")
    private String orderNumber;

    @ApiModelProperty(" 流转工单id")
    @TableField(value = "id")
    private Long workorderId;

    /** HVI 检验负责人 */
    @ApiModelProperty(" HVI 检验负责人")
    @Excel(name = "HVI 检验负责人")
    @TableField(value = "principal_sign_hvi")
    private String principalSign;

    @ApiModelProperty(" 班组负责人签名")
    @Excel(name = "班组负责人签名")
    private String teamLeaderSign;

    /** 检验完成时间 */
    @ApiModelProperty(" 检验完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "检验完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(value = "finish_time_hvi")
    private Date finishTime;

    /** 情况及处理意见 */
    @ApiModelProperty(" 情况及处理意见")
    @Excel(name = "情况及处理意见")
    @Size(max = 20, message ="限制1-20个字符")
    @TableField(value = "opinion_hvi")
    private String opinion;

    /** 处理时间 */
    @ApiModelProperty(" 处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "over_time_hvi")
    private Date overTime;

    /** 交接时间 */
    @ApiModelProperty(" 交接时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "交接时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(value = "delivery_time_hvi")
    private Date deliveryTime;

    /** hvi检验记录
信息 */
    @TableField(exist = false)
    private List<QmsWorkorderHviRecord> qmsWorkorderHviRecordList;

    @TableField(exist = false)
    private int type;
}
